#include "abstractFactory.h"
#include "product.h"

#include <iostream>

using namespace std;

int main(int argc, char * argv[])
{

	AbstractFactory *pAbsFac1 = new ConcreteFactory1();
	pAbsFac1->CreateProductA();
	pAbsFac1->CreateProductB();

	AbstractFactory *pAbsFac2 = new ConcreteFactory2();
	pAbsFac2->CreateProductA();
	pAbsFac2->CreateProductB();
	


	delete pAbsFac1;
	delete pAbsFac2;

	return 0;
}

/* 缺少释放内存 delete */